﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Canlipe.ServiceInterfaces;

namespace Canlipe.Utils
{
    public class MarkdownParser : IContentParser
    {
		private static MarkdownSharp.Markdown s_parser;

        static MarkdownParser()
		{
            s_parser = new MarkdownSharp.Markdown();
            s_parser.Highlighter = new ColorCodeToMarkdownSharpBridge();
		}

        public string Parse(string text)
        {
            return s_parser.Transform(text);
        }
    }
}
